package com.hmall.item.utils;

public class UserHolder {
    public static final ThreadLocal<Long> tl =new ThreadLocal<>();
    public static void setTl(Long userId){
    tl.set(userId);
    }
    public static Long getTl(){
        return tl.get();
    }
    public static void removeTl(){
        tl.remove();
    }

}